<?php
session_start();
$img = imagecreatetruecolor ( 70, 30 );

$fill_color = imagecolorallocate ( $img, 255, 255, 255 );
imagefilledrectangle ( $img, 0, 0, 70, 30, $fill_color );
$text_color = imagecolorallocate ( $img, 10, 10, 10 );
$font = '../font/28DaysLater.ttf';
imagettftext ( $img, 23, 0, 5, 30, $text_color, $font, $_SESSION['captcha'] );

header ( "Content-type: image/jpeg" );
imagejpeg ( $img );
imagedestroy ( $img );
//echo $_SESSION['captcha'];
?>